import { ref } from 'vue'
import { defineStore } from 'pinia'
import {getCategoryAPI} from '@/api/user.js'
export const useHeaderStore = defineStore('Header', () => {
  const category = ref([])
  const getCategory= async ()=>{
  const res = await getCategoryAPI()
  // console.log(res.data.result);
  category.value = res.data.result
}
  return {category,getCategory }
})
